package cn.dyw.cloudmusic.http.model;

import cn.dyw.cloudmusic.config.ParamsConfig;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author: dyw770
 * @Date: 2018/12/14 18:03
 * @Description: TODO
 */
@Data
public class LyricParams implements Params {

    @JSONField(ordinal = 1)
    private String id;

    @JSONField(ordinal = 2)
    private int lv;

    @JSONField(ordinal = 3)
    private int tv;

    @JSONField(ordinal = 4, name = "csrf_token")
    private String csrfToken;

    public LyricParams(String id) {
        this.id = id;
        this.lv = -1;
        this.tv = -1;
        this.csrfToken = "";
    }

    @Override
    public String songId() {
        return id;
    }

    @Override
    public String requestUrl() {
        return ParamsConfig.lyricUrl;
    }
}
